package spm.entities;

/**
 * This is a persistent class used by Hibernate. The class represents a user
 * assigned to the project.
 * 
 * The class is used in the ternary association mapping. That's why it doesn't
 * contain a reference to the project.
 * 
 * @author Evgeny Ryzhkov
 * 
 * $Id: ProjectMember.java 11 2006-12-04 15:04:58Z evgeny.ryzhkov $
 * 
 */
public class ProjectMember {

	/**
	 * The user assigned to the project.
	 */
	private User member;

	/**
	 * The user custom role.
	 */
	private Role role;

	/**
	 * Constructor without parameters. It is required by Hibernate.
	 */
	public ProjectMember() {
	}

	/**
	 * @return Returns the member.
	 */
	public User getMember() {
		return member;
	}

	/**
	 * @param member
	 *            The member to set.
	 */
	public void setMember(User member) {
		this.member = member;
	}

	/**
	 * @return Returns the role.
	 */
	public Role getRole() {
		return role;
	}

	/**
	 * @param role
	 *            The role to set.
	 */
	public void setRole(Role role) {
		this.role = role;
	}

}
